<div id="work-in-progress" title="Elaborazione in corso">
	<img src="images/loading.gif" alt="Elaborazione in corso...."/>
</div>

 <script>
	$(function() {

	 $( "#work-in-progress" ).dialog({
		 autoOpen: false,
		 modal: true
		 });

		

		
	
	});

	$.validator.setDefaults({
		submitHandler: function() {  
			$( "#work-in-progress" ).dialog( "open" );
			form.submit();
		}
	});
	
</script>